# 正序的示范
# count = 1
# while count <= 5:
#     print(count)
#     count = count + 1
#
# # 倒序的示范
# count = 5
# while count:
#     print(count)
#     count = count - 1

# print("haihai\u3000hahaha")

# num = input("学习进度：")
# s = '我最近学了整本书的%s%%'
# print(s % (num))

#  while 循环   死循环
# while 条件:
#      循环体

# count = 5
# while count:
#     print(count)
#     count -= 1     # 倒序

# count = 1
# while count <= 5:
#     print(count)
#     count += 1       # 正序

# 总结
# 打断循环的条件：
# 1，自己修改的条件
# 2，break
# break----打破当前循环（终止当前循环）
# continue-----跳出当前循环继续下次循环（将continue伪装成循环体中的最后一行循环。）
# break 和 continue相同之处：他们以下的代码都不执行。

# 字符串的格式化
# s = '''---------info--------
# name:%s
# age:%s
# job:%s
# ----------end-----------
# '''
# name = input('name:')
# age = input('age:')
# job = input('job:')
# print(s % (name, age, job))

# s = f'''---------info--------
# name:{input('name')}
# age:{input('age')}
# job:{input('job')}
# ----------end-----------
# '''
# print(s)
